import React from 'react';
import { inject, observer } from "mobx-react";
import api from "@/api";
@inject('countStore')
@observer
export default class Test extends React.Component<{ countStore: any }> {
  componentDidMount() {
    this.props.countStore.increase()
  }
  async clickTest() {
    this.props.countStore.increase()
    console.log(this.props.countStore.count)
    let res = await api.UserApi.login('asd', 'asdfad')
    console.log(res)
  }
  render() {
    return (
      <div className="" onClick={() => this.clickTest()}>test {this.props.countStore.count}sssssss</div>
    )
  }
}
